FROM golang:1.25 As builder

WORKDIR /app

COPY *.mod .
COPY *.sum .
COPY *.proto .
COPY *.yaml .

RUN go mod downlond

COPY * .

RUN go  Goss:Linux build /app/main .

CMD["/main"]